import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import SwipeableTabBarNode from './SwipeableTabBarNode';
import TabBarSwipeableTabs from './TabBarSwipeableTabs';
import TabBarRootNode from './TabBarRootNode';
import InkTabBarNode from './InkTabBarNode';
import SaveRef from './SaveRef';

var SwipeableInkTabBar = function (_React$Component) {
  _inherits(SwipeableInkTabBar, _React$Component);

  function SwipeableInkTabBar() {
    _classCallCheck(this, SwipeableInkTabBar);

    return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
  }

  SwipeableInkTabBar.prototype.render = function render() {
    var _this2 = this;

    return React.createElement(
      SaveRef,
      null,
      function (saveRef, getRef) {
        return React.createElement(
          TabBarRootNode,
          _extends({ saveRef: saveRef }, _this2.props),
          React.createElement(
            SwipeableTabBarNode,
            _extends({ saveRef: saveRef, getRef: getRef }, _this2.props),
            React.createElement(TabBarSwipeableTabs, _extends({ saveRef: saveRef }, _this2.props)),
            React.createElement(InkTabBarNode, _extends({ saveRef: saveRef, getRef: getRef }, _this2.props))
          )
        );
      }
    );
  };

  return SwipeableInkTabBar;
}(React.Component);

export default SwipeableInkTabBar;